package com.kaili.pojo.dto.arrive;

import com.kaili.pojo.vo.ArriveEwbVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * Created by renzhikun on 18-11-27.
 */
@Data
public class ArriveStowageDTO {

    @Pattern(regexp = "^[A-Za-z0-9]{0,20}$",message = "配载ID应为[A-Za-z0-9]组成的1-20位字符")
    @ApiModelProperty("配载ID")
    private String operationId;

    @Pattern(regexp = "^[A-Za-z0-9]{0,11}$",message = "车辆ID应为[A-Za-z0-9]组成的1-11位字符")
    @ApiModelProperty("车辆ID")
    private Integer carId;

    @ApiModelProperty("到货单")
    private List<ArriveEwbVO> arriveEwbVO;

    @NotNull(message = "来源不能为空")
    @ApiModelProperty("来源,1标示web端,2标示PDA端")
    private Integer sourceType;

}
